package com.cxm.homework8.jdbcTmp.query;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class TestFindUserList {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/cxm/homework8/jdbcTmp/query/spring-config.xml");
        UserDao userDao = ac.getBean(UserDao.class);
        List<User> users = userDao.findUserList();
        for (User user : users) {
            System.out.println(user);
        }
    }
}
